package dao;

import bean.Knowledge;
import bean.User;

import java.util.List;

/**
 * @ClassName KnowledgeDao.class
 * @Description
 * @Author wq3stone
 * @Date 2022/12/22 19:35
 */
public interface KnowledgeDao {
    int insert(Knowledge knowledge);
    int delete(int id);
    int modify(Knowledge knowledge);
    Knowledge queryKnowledgeById(int id);
    Knowledge queryKnowledgeByTitle(String title);
    Knowledge queryKnowledgeByCategory(String category);
    Knowledge queryKnowledgeByKeyword(String keyword);
    List<Knowledge> findAll(User user);
}
